<style>
    .pageFormContent label{
        width: 80px;
    }
    .subscribe-num{
        margin-left:20px;
    }
</style>
<div class="pageContent">
    <form method="post" action="{:url('Subscribe/editSubscribe')}" class="pageForm" onsubmit="return validateCallback(this, navTabAjaxDone)">
        <div class="pageFormContent" layoutH="58">
            <div class="unit">
                <label>所选日期：</label>
                <input type="text" readonly disabled value="{$date}" />
                <input type="hidden" name="date_id" value="{$date_id}" />
                {neq name="company_id" value="45"}
                <span style="line-height:21px;margin-left: 25px;">默认台数：<span style="color:#ff6c60;font-weight:bold;">{$subscribe_num}</span> 台</span>
                {/neq}
            </div>
            {eq name="company_id" value="45"}
            <div class="unit">
                <label style="width:200px;font-weight:bold;color:#ff6c60">汽油车</label>
                <label style="line-height:21px;margin-left: 38px;width:200px">默认台数：<span style="color:#ff6c60;font-weight:bold;">{$subscribe_num_gas|default="0"}</span> 台</label>
            </div>
            {volist name="subscribe" id="item"}
            <div class="unit">
                <label>{$item.time_state|strtotime|date="H:i",###}</label>
                <input type="hidden" name="time_state_id[{$key}]" value="{$item.time_state_id}"/>
                剩余：<input type="number" name="num_gas[{$key}]" style="width:100px" size="10" maxlength="50" class="required digits" value="{$item.num_gas}" /> 台
                <span class="subscribe-num">已预约：<span style="color:#ff6c60;font-weight:bold">{$item.subscribe_num_gas}</span> 台</span>
            </div>
            {/volist}
            <div class="unit">
                <label style="width:200px;font-weight:bold;color:#ff6c60">柴油车</label>
                <label style="line-height:21px;margin-left: 38px;width:200px">默认台数：<span style="color:#ff6c60;font-weight:bold;">{$subscribe_num_diesel|default="0"}</span> 台</label>
            </div>
            {volist name="subscribe" id="item"}
            <div class="unit">
                <label>{$item.time_state|strtotime|date="H:i",###}</label>
                剩余：<input type="number" name="num_diesel[{$key}]" style="width:100px" size="10" maxlength="50" class="required digits" value="{$item.num_diesel}" /> 台
                <span class="subscribe-num">已预约：<span style="color:#ff6c60;font-weight:bold">{$item.subscribe_num_diesel}</span> 台</span>
            </div>
            {/volist}
            <div class="unit" style="margin-top:10px">
                <label style="width:200px;font-weight:bold;color:#ff6c60">挂车</label>
                <label style="line-height:21px;margin-left: 38px;width:200px">默认台数：<span style="color:#ff6c60;font-weight:bold;">{$subscribe_num}</span> 台</label>
            </div>
            {volist name="subscribe" id="item"}
            <div class="unit">
                <label>{$item.time_state|strtotime|date="H:i",###}</label>
                剩余：<input type="number" name="num[{$key}]" style="width:100px" size="10" maxlength="50" class="required digits" value="{$item.num}" /> 台
                <span class="subscribe-num">已预约：<span style="color:#ff6c60;font-weight:bold">{$item.subscribe_num}</span> 台</span>
            </div>
            {/volist}
            {else/}
            <div class="unit">
                <label style="width:200px;font-weight:bold;color:#ff6c60">填写各时间段可预约车辆数</label>
            </div>
            {volist name="subscribe" id="item"}
            <div class="unit">
                <label>{$item.time_state|strtotime|date="H:i",###}</label>
                <input type="hidden" name="time_state_id[{$key}]" value="{$item.time_state_id}"/>
                剩余：<input type="number" name="num[{$key}]" style="width:100px" size="10" maxlength="50" class="required digits" value="{$item.num}" /> 台
                <span class="subscribe-num">已预约：<span style="color:#ff6c60;font-weight:bold">{$item.subscribe_num}</span> 台</span>
            </div>
            {/volist}
            {/eq}
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>
</div>

